import request from '@/utils/request'

export function adminGetTeachers() {
  return request({
    url: '/admin/teacher/list',
    method: 'post'
  })
}

export function adminChangeTeacher(data) {
  console.log(data)
  return request({
    url: '/admin/teacher/update',
    method: 'post',
    data
  })
}

export function adminDeleteTeacher(data) {
  console.log(data)
  return request({
    url: '/admin/teacher/delet',
    method: 'post',
    data
  })
}

export function adminAddTeacher(data) {
  console.log(data)
  return request({
    url: '/admin/teacher/add',
    method: 'post',
    data
  })
}
